package Day08.demo2;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;

/**
 * @author chihb
 * @create-time 2024/7/4 13:47
 * @description
 */
public class Test {
    public static void main(String[] args) {
        HashMap<String,String> jcb=new HashMap<>();
        jcb.put("001","李晨");
        jcb.put("002","范冰冰");
        HashMap<String,String> jyb=new HashMap<>();
        jyb.put("001","马云");
        jyb.put("002","马化腾");
        HashMap<String, HashMap<String,String>> mp=new HashMap<String, HashMap<String,String>>();
        mp.put("java基础班",jcb);
        mp.put("Java就业班",jyb);
        Set<String> strings = mp.keySet();
        Collection<HashMap<String, String>> values = mp.values();
        Set<Map.Entry<String, HashMap<String, String>>> entries = mp.entrySet();
        for(Map.Entry<String, HashMap<String, String>>entry:entries){
            System.out.println(entry.getKey());
            System.out.println(entry.getValue());
        }
        for(String i:strings){
            System.out.println(i);
        }

    }
}
